import { createApp } from 'vue'
import App from './App.vue'
// 重置样式：让html标签在浏览器中有一样的表现
import 'normalize.css';
// 公共样式
import '@/assets/styles/common.less'
// 导入路由
import router from '@/router'
// 导入pinia
import { createPinia } from 'pinia'
// 插件存储
import piniaPersist from 'pinia-plugin-persist'

const app = createApp(App)
const pinia = createPinia()
import XtxUI from './components/index'
import directives from './directives/index'
// import { useIntersectionObserver } from '@vueuse/core';
app.use(XtxUI)
app.use(directives)
pinia.use(piniaPersist)
app.use(router).use(pinia).mount('#app')
